package com.yudean.esb.domain.mds;

import java.io.Serializable;
import java.util.Objects;

/**
 * 访问mds.MDS_ERP_FIN_INDEX对应的对象
 *
 * @author DL
 */
public class MdsERPFinIndex implements Serializable {
    private static final long serialVersionUID = -1529889648460219748L;
    private Double indexId;
    private String compCode;
    private String entityCode;
    private String entityName;
    private String eipName;
    private Integer periodYear;
    private Integer periodMonth;
    private String periodName;
    private String indexCode;
    private String indexName;
    private String indexValueYTD;

    public Double getIndexId() {
        return indexId;
    }

    public void setIndexId(Double indexId) {
        this.indexId = indexId;
    }

    public String getCompCode() {
        return compCode;
    }

    public void setCompCode(String compCode) {
        this.compCode = compCode;
    }

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getEipName() {
        return eipName;
    }

    public void setEipName(String eipName) {
        this.eipName = eipName;
    }

    public Integer getPeriodYear() {
        return periodYear;
    }

    public void setPeriodYear(Integer periodYear) {
        this.periodYear = periodYear;
    }

    public Integer getPeriodMonth() {
        return periodMonth;
    }

    public void setPeriodMonth(Integer periodMonth) {
        this.periodMonth = periodMonth;
    }

    public String getPeriodName() {
        return periodName;
    }

    public void setPeriodName(String periodName) {
        this.periodName = periodName;
    }

    public String getIndexCode() {
        return indexCode;
    }

    public void setIndexCode(String indexCode) {
        this.indexCode = indexCode;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public String getIndexValueYTD() {
        return indexValueYTD;
    }

    public void setIndexValueYTD(String indexValueYTD) {
        this.indexValueYTD = indexValueYTD;
    }

    public String getEntityCode() {
        return entityCode;
    }

    public void setEntityCode(String entityCode) {
        this.entityCode = entityCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MdsERPFinIndex)) return false;

        MdsERPFinIndex that = (MdsERPFinIndex) o;

        if (!Objects.equals(compCode, that.compCode)) return false;
        if (!Objects.equals(eipName, that.eipName)) return false;
        if (!Objects.equals(entityName, that.entityName)) return false;
        if (!Objects.equals(indexCode, that.indexCode)) return false;
        if (!indexId.equals(that.indexId)) return false;
        if (!Objects.equals(indexName, that.indexName)) return false;
        if (!Objects.equals(indexValueYTD, that.indexValueYTD)) return false;
        if (!Objects.equals(periodMonth, that.periodMonth)) return false;
        if (!Objects.equals(periodName, that.periodName)) return false;
        if (!Objects.equals(periodYear, that.periodYear)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = indexId.hashCode();
        result = 31 * result + (compCode != null ? compCode.hashCode() : 0);
        result = 31 * result + (entityName != null ? entityName.hashCode() : 0);
        result = 31 * result + (eipName != null ? eipName.hashCode() : 0);
        result = 31 * result + (periodYear != null ? periodYear.hashCode() : 0);
        result = 31 * result + (periodMonth != null ? periodMonth.hashCode() : 0);
        result = 31 * result + (periodName != null ? periodName.hashCode() : 0);
        result = 31 * result + (indexCode != null ? indexCode.hashCode() : 0);
        result = 31 * result + (indexName != null ? indexName.hashCode() : 0);
        result = 31 * result + (indexValueYTD != null ? indexValueYTD.hashCode() : 0);
        return result;
    }
}

